/**
 * @zh 计算两三维坐标间的距离
 * @param vec1 坐标1
 * @param vec2 坐标2
 * @returns 距离
 * @en Calculate the distance between two vectors
 * @param vec1 Vector 1
 * @param vec2 Vector 2
 * @returns Distance
 */
function distance(vec1: GameVector3, vec2: GameVector3): number {
    return (
        ((((vec1.x - vec2.x) ** 2 + (vec1.z - vec2.z) ** 2) ** 0.5) ** 2 +
            (vec1.y - vec2.y) ** 2) **
        0.5
    );
}

// 导出模块 Export modules
export { distance };
